﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;
using System.ComponentModel;

namespace DllSync
{
	[Serializable]
	[XmlRoot(ElementName = XmlRoot.Version.XmlName, Namespace = XmlRoot.NampespaceUri)]
	public class DeployVersion
	{
		[XmlAttribute(AttributeName = XmlRoot.Version.Number)]
		public string Number { get; set; }

		[XmlAttribute(AttributeName = XmlRoot.Version.Kind)]
		public string Kind { get; set; }

		[XmlAttribute(AttributeName = XmlRoot.Version.Location)]
		public string Location { get; set; }

		[XmlText]
		public string Text { get; set; }

		public Version AsVersion()
		{
			return new Version(Number);
		}
	}
}
